import request from "../utils/request";

// 管理员(教师)查看试题
export const questionsList = data => {
    return request({
        method: 'POST',
        url: '/evaluation/findPageEvaluation',
        data
    })
}
//发布试题
export const release = id => {
    return request({
        method: 'GET',
        url: '/evaluation/release?id=' + id
    })
}
//删除试题
export const releaseDelete = id => {
    return request({
        method: 'GET',
        url: '/evaluation/deleteEvaluation?id=' + id
    })
}
//新增试题
export const  addQuestions = data => {
    return request({
        method: 'POST',
        url: '/evaluation/addEvaluation',
        data
    })
}
//查看考试详情
export const releaseDetails = id => {
    return request({
        method: 'GET',
        url: '/evaluation/findEv?id=' + id
    })
}
//编辑试题
export const  editQuestions = data => {
    return request({
        method: 'POST',
        url: '/evaluation/editEvaluation',
        data
    })
}
//(管理员)教师查看学生测评
export const  studentData = data => {
    return request({
        method: 'POST',
        url: '/evaluation/findPageUserEvaluation',
        data
    })
}
//查看学生答案
export const studentQuestions = id => {
    return request({
        method: 'GET',
        url: '/evaluation/findEvaluationInfo?id=' + id
    })
}
//实验员点评
export const  comment = data => {
    return request({
        method: 'POST',
        url: '/evaluation/teacherCommenting',
        data
    })
}
